package com.woniuxy.course.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cyh
 * @since 2020-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ArticleRelease对象", description="")
public class ArticleRelease implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "发布文章id")
    @TableId(type = IdType.AUTO)
    private long id;

    @ApiModelProperty(value = "任课教师id")
    private Integer tcId;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "附件地址")
    private String appendLoc;

    @ApiModelProperty(value = "查看权限 0本班 1本年级 2本县市区")
    private Integer rage;

    @ApiModelProperty(value = "审核状态 默认0 未审核 1已审核")
    private Integer exam;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除 0未删除 1已删除")
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date gmtModified;

    private String tittle;
    private String kp;

}
